﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace Model
{
    /// <summary>
    /// 房主信息
    /// </summary>
    public class HouseHolder
    {
        public HouseHolder() { }
        public HouseHolder(int id, int personalInformationId, int evaluationScore, int isRecommended)
        {
            // TODO: Complete member initialization
            this.Id = id;
            this.PersonalInformationId = personalInformationId;
            this.EvaluationScore = evaluationScore;
            this.IsRecommended = isRecommended;
        }
        public override bool Equals(object obj)
        {
            HouseHolder o = (HouseHolder)obj;
            return (this.Id == o.Id &&
                this.EvaluationScore == o.EvaluationScore &&
                this.PersonalInformationId == o.PersonalInformationId &&
                this.IsRecommended == o.IsRecommended);
        }

        #region Basic Getters and Setters
        private int _id;                                 // PK

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }


        private int _personalInformationId;              // FK  基本信息Id

        public int PersonalInformationId
        {
            get { return _personalInformationId; }
            set { _personalInformationId = value; }
        }


        private int _evaluationScore;                    // 评价分

        public int EvaluationScore
        {
            get { return _evaluationScore; }
            set { _evaluationScore = value; }
        }


        private int _isRecommended;                      // 是否被推荐

        public int IsRecommended
        {
            get { return _isRecommended; }
            set { _isRecommended = value; }
        }

        private int _isChecked;                         // 是否通过审核

        public int IsChecked
        {
            get { return _isChecked; }
            set { _isChecked = value; }
        }

        #endregion
    }
}
